<?php

namespace App\Kuafu\Common\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class CommonCodeEnum extends BaseCodeEnum
{

    public const ERR_PRODUCT_PRICE_TWO_POS   = 408008;
    public const ERR_UPLOAD_IMAGE_EXT_ERROR  = 410001;
    public const ERR_UPLOAD_IMAGE_SIZE_ERROR = 410002;
    public const ERR_BRAND_ID_ERROR          = 410003;
    public const ERR_SHOP_ID_ERROR           = 410004;
    public const ERR_PLATFORM                = 410005;
    public const ERR_NO_TOKEN                = 410006;
    public const ERR_PAYLOAD                 = 410007;
    public const ERR_TOKEN_EXPIRE            = 410008;
    public const ERR_TOKEN_INVALID           = 410009;
    public const ERR_TOKEN                   = 410010;
    public const ERR_PARAM_ERROR             = 410011;
    public const ERR_SIGN_ERROR              = 410012;
    public const ERR_SEPARATOR_TIME          = 410013;

    public const CODE_TEXT = [
        //公共模块
        self::ERR_PRODUCT_PRICE_TWO_POS   => "价格请保留两位小数",
        self::ERR_UPLOAD_IMAGE_EXT_ERROR  => "文件上传格式有误",
        self::ERR_UPLOAD_IMAGE_SIZE_ERROR => "文件上传大小不符合要求",
        self::ERR_BRAND_ID_ERROR          => "品牌有误",
        self::ERR_SHOP_ID_ERROR           => "店铺有误",
        self::ERR_PLATFORM                => "平台错误",
        self::ERR_NO_TOKEN                => "APPLET-TOKEN不能为空",
        self::ERR_PAYLOAD                 => "The payload is invalid",
        self::ERR_TOKEN_EXPIRE            => "The token is expired",
        self::ERR_TOKEN                   => "The token is error",
        self::ERR_TOKEN_INVALID           => "The token is invalid",
        self::ERR_PARAM_ERROR             => "参数缺失",
        self::ERR_SIGN_ERROR              => "验签失败",
        self::ERR_SEPARATOR_TIME          => "开始结束时间跨越了隔断时间",
    ];
}
